package hub.cathome.entity;

import java.util.Date;

public class Comment {
    private Integer id;
    private User user;
    private String content;
    private Integer shotBlogId;
    private Date date;

    public Comment() {
    }

    public Integer getShotBlogId() {
        return shotBlogId;
    }

    public void setShotBlogId(Integer shotBlogId) {
        this.shotBlogId = shotBlogId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", user=" + user +
                ", content='" + content + '\'' +
                ", shotBlogId=" + shotBlogId +
                ", date=" + date +
                '}';
    }
}
